//
// Created by zhuzonghui on 2022/12/15.
//

#ifndef WZY_USERCONTROLLER_H
#define WZY_USERCONTROLLER_H

#include <string>
#include <list>
#include "../model/user.h"

using namespace std;

User *login(const char *username, const char *password);

list<User *> *getUserList();

list<User *> *selectUserByUserIdOrStudentId(string userId);

void insertUser(User *user);

User *getUserByUserId(int userId);

void deleteUserByUserId(User *user);

void changePasswordByUserId(User *user);

#endif //WZY_USERCONTROLLER_H
